package com.breaktian.assemble.socket;


import com.breaktian.assemble.socket.udp.UdpSocket;
import com.breaktian.assemble.socket.udt.UdtSocket;

public class ClientUtil {
	
	public static void sendUDP(String s, String remoteIp, int remotePort){
		UdpSocket socket = new UdpSocket();
		socket.connect(remoteIp, remotePort);
		socket.send(s);
		socket.close();
	}
	
	public static void sendUDT(String s, String remoteIp, int remotePort){
		UdtSocket socket = new UdtSocket();
		socket.connect(remoteIp, remotePort);
		socket.send(s);
		socket.close();
	}
	
	
	
}
